package com.gljx.web.dao;


import com.gljx.web.Entity.RemunProvide;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface RemunProvideMapper {
    int deleteByPrimaryKey(String fid);

    int insert(RemunProvide record);

    int insertSelective(RemunProvide record);

    RemunProvide selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(RemunProvide record);

    int updateByPrimaryKey(RemunProvide record);

    /**
     * 根据组织查找薪资发放信息
     * @param fcompanyid
     * @return
     */
    RemunProvide selRemunProvide(@Param("fcompanyid")String fcompanyid , @Param("fid") String fid);

    /**
     * 查找最大编码
     * @return
     */
    String selectFnumber(String companyId);

    /**
     * 根据编号查找薪酬发放
     * @param fnumber
     * @param companyId
     * @return
     */
    List<RemunProvide> selRemunProvideByFnumber(@Param("fnumber") String fnumber, @Param("companyId")String companyId);
}